home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form PGPR
- BorderStyle = 1 'Fixed Single
- Caption = "PGP Reader"
- ClientHeight = 2580
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 4890
- Height = 2985
- Icon = PGPR.FRX:0000
- Left = 1035
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 2580
- ScaleWidth = 4890
- Top = 1140
- Width = 5010
- Dim ispgp As Integer
- Sub Form_Load ()
- If LTrim$(RTrim$(Command$)) = "" Then
- i% = MsgBox("Usage: pgpr filename")
- End
- End If
- i% = Shell("notepad " + Command$, 1)
- ispgp = 0
- Open Command$ For Input As #1
- While Not (ispgp Or EOF(1))
- Input #1, l$
- If InStr(l$, "-----BEGIN PGP") Then ispgp = 1
- Wend
- Close (1)
- If ispgp Then i% = Shell("pgpread.pif " + Command$, 1)
- End
- End Sub
-